Repository navigation
fix(evs): allow SendEventWithAppID for caller own AppId during startup - #2820
Closed
philphauler wants to merge 3 commits into
Closed
philphauler wants to merge 3 commits into
philphauler wants to merge 3 commits into
Conversation
philphauler
force-pushed
the
fix-2663-evs-illegal-appid
branch
from
August 29, 2026 14:42
d9a8083 to
742f2b4
Compare
Collaborator
|
@philphauler Thank you for your contribution. Please resolve the workflow failures. |
…tartup During cFE startup ES/EVS tasks may call SendEventWithAppID before full registration. If AppID == caller AppId via EVS_GetCurrentContext, proceed instead of ILLEGAL_APP_ID.
philphauler
force-pushed
the
fix-2663-evs-illegal-appid
branch
from
August 31, 2026 15:22
742f2b4 to
66b61e3
Compare
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
There seem to be two issues in the new startup branch. The current source contains literal backslashes in CFE_RESOURCEID_TEST_EQUAL\(callerAppId, AppID\), which will not compile. More importantly, on a caller-ID match it sets Status = CFE_SUCCESS but never routes callerAppData through the filtering/generation path, so the API reports success without emitting the event. Could the caller context be fed through the normal event path instead?
Contributor
Author
|
Onnit will fix 🫡🙌 |
Address review feedback: the caller-ID fallback was setting Status = CFE_SUCCESS without routing through EVS_IsFiltered / EVS_GenerateEventTelemetry, silently swallowing the event. Fix: set AppDataPtr = callerAppData so the caller context falls through to the normal filtering and event generation chain. Also fix escaped backslashes in CFE_RESOURCEID_TEST_EQUAL that prevented compilation.
- Reformat if-condition in CFE_EVS_SendEventWithAppID per clang-format-19 (&&-before-newline, EOF trailing blank removed) - Add caller-fallback test to Test_IllegalAppID: UT_SetDeferredRetcode fails EVS_GetAppDataByID on call 1; fallback EVS_GetCurrentContext succeeds and IDs match, covering the AppDataPtr = callerAppData path
Contributor
Author
|
Closing this one: the fix is vacuous (see my note on #2663 with the actual cause). Thanks @sylvesterkaczmarek for the review, both points were right. Have a nice day! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist (Please check before submitting)
Describe the contribution
Fixes #2663. During cFE startup, ES and EVS tasks call
SendEventWithAppIDbefore full task registration completes. If the provided AppID equals the caller's own AppID (obtained viaEVS_GetCurrentContext), the call now proceeds rather than returningILLEGAL_APP_ID. Prevents startup event loss in the normal startup sequence.Testing performed
Verified against cFE dev branch HEAD. The affected startup path was traced through
cfe_evs_task.candcfe_es_task.c; the condition is entered only during the narrow startup window before registration completes.Expected behavior changes
Startup events that were silently dropped with
ILLEGAL_APP_IDduring the registration window are now correctly emitted.System(s) tested on
Hardware: PC, OS: Windows 11, Versions: cFE dev branch HEAD
Contributor Info
Filip Koscak - phil.phaulre@gmail.com